﻿<UserControl x:Class="EX_NFC.FrontEnd.Windows.Controls.DeviceBuzzerControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="553">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <!-- COLUMN 0 - 1 -->
        <TextBlock Text="{Binding Source={StaticResource Localizer},Path=Localize.Buzzer_OnDuration}" Style="{DynamicResource ContentTextStyle}" VerticalAlignment="Center" Margin="{DynamicResource MediumMargin}" />
        <extToolkit:DoubleUpDown Minimum="0"
                                 Grid.Column="1"
                                 Value="{Binding BuzzerOnDuration}" Width="100" VerticalAlignment="Center" />
        <!-- COLUMN 2 - 3 -->
        <TextBlock Text="{Binding Source={StaticResource Localizer},Path=Localize.Buzzer_OffDuration}"
                   Grid.Row="0"
                   Grid.Column="2" Style="{DynamicResource ContentTextStyle}" VerticalAlignment="Center" Margin="{DynamicResource MediumMargin}" />
        <extToolkit:DoubleUpDown Minimum="0"
                                 Grid.Row="0"
                                 Grid.Column="3"
                                 Value="{Binding BuzzerOffDuration}" Width="100" VerticalAlignment="Center" />
        <!-- COLUMN 4 - 5 -->
        <TextBlock Text="{Binding Source={StaticResource Localizer},Path=Localize.Buzzer_Repeat}"
                   Grid.Row="0"
                   Grid.Column="4" Style="{DynamicResource ContentTextStyle}" VerticalAlignment="Center" Margin="15,8,14.999,8" HorizontalAlignment="Stretch" d:LayoutOverrides="Width" />
        <extToolkit:DoubleUpDown Minimum="1"
                                 Grid.Row="0"
                                 Grid.Column="5"
                                 Value="{Binding BuzzerRepeat}" Width="70" VerticalAlignment="Center" />
        <!-- COLUMN 6 -->
        <Button Content="{Binding Source={StaticResource Localizer},Path=Localize.Buzzer_Buzz}"
                Grid.Column="6"
                Grid.Row="0"
                HorizontalAlignment="Center"
                Command="{Binding CommandBuzzer}" Width="{DynamicResource MediumControlWidth}" Height="{DynamicResource MediumControlHeight}" Margin="{DynamicResource MediumMargin}" />
    </Grid>
</UserControl>
